import http from '@/utils/http'

export const getData = (params) => {
    return http.post(`/squared/squaredInfo`,params)
}

export const getManualById = (manualId) => {
    return http.get(`/chess?id=${manualId}`)
}

export const getPieces = () => {
    return http.get(`/chess/pieces`)
}

export const saveManual = (params) => {
    return http.post(`/chess/manual`,params)
}

export const getChessPieceSets = (manualId) => {
    return http.get(`/chess/pieceSets?manualId=${manualId}`)
} 

export const getChessBoard = (manualId) => {
    return http.get(`/chess/board?manualId=${manualId}`)
}